WIP Undici migration p2#2813
Conversation
…ock dependency, migrate cache_test to MockAgent
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidgamero The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This is really great progress on modernizing the project. Thanks for working on it. |
thanks! i was trying to remove nock so we can consolidate testing into undici mockagent and it snowballed |
… errors, add exponential backoff + integration test
60b46b0 to
7a25b4f
Compare
| }); | ||
|
|
||
| const cache = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); | ||
| (cache as any).delayFn = (ms: number) => { |
There was a problem hiding this comment.
Will look for a better way than this as any
| console.log('✓ Received DELETED event'); | ||
| } finally { | ||
| controller.abort(); | ||
| try { |
There was a problem hiding this comment.
Todo: extract this cleanup logic across integration tests
node-fetch removals
auth
watch
informer